let uu = document.querySelector("main>.info")

    //请求数据
    fetch("http://chst.vip:1234/api/getsitenav")
        .then(response => response.json())
        .then(res => {
            // console.log(res.result);
            let domStr = ''
            res.result.forEach(item => {
                // let regExp = /(?<=imgurl=)[^'"]*/
                domStr += `
                <li>
                    <a href=${item.navHref}>
                        <img src=${item.navImg} alt="">
                        <span>${item.navTitle}</span>
                    </a>
                </li>`
            })
            uu.innerHTML = domStr
        })
